Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Compress(Byte[],Int32) Method
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class > Compress Method : Compress(Byte[],Int32) Method



data
Array of bytes that holds the data to be compressed.
dataIndex
Index into data where the data starts.
Does buffer-to-buffer JPEG or LEAD CMP compression.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Compress( _
   ByVal data() As Byte, _
   ByVal dataIndex As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterCodecs
Dim data() As Byte
Dim dataIndex As Integer
 
instance.Compress(data, dataIndex)
C# 
public void Compress( 
   byte[] data,
   int dataIndex
)
C++/CLI 
public:
void Compress( 
   array<byte>^ data,
   int dataIndex
) 

Parameters

data
Array of bytes that holds the data to be compressed.
dataIndex
Index into data where the data starts.

Example

For an example, refer to StartCompress.

Remarks

You must call StartCompress before using this method, and you must call StopCompress to end the compression process. For a description of how these methods work together, refer to StartCompress.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also